<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
		var jsonObj={
			"arr":[11,21,31,41],
			"booValue":true,
			"strMsg":"welcome",
			"jsonArr":[
						{"name":"小明","age":14,"sex":"男"},
						{"name":"小红","age":15,"sex":"女"},
						{"name":"小绿","age":13,"sex":"男"},
						{"name":"小黄","age":17,"sex":"女"}
						]
		};
		var arr=jsonObj.arr;
		for (var i=0;i<arr.length;i++) {
			console.log(i+"----"+arr[i]);
		}
		var booValue=jsonObj.booValue;
		console.log("booValue="+booValue);
		var strMsg=jsonObj.strMsg;
		console.log("strMsg="+strMsg);
		var jsonArr=jsonObj.jsonArr;
		for (var i=0;i<jsonArr.length;i++) {
							var jsonObj=jsonArr[i];
							var name=jsonObj.name;
							var age=jsonObj.age;
							var sex=jsonObj.sex;
							console.log("name="+name+"-----age="+age+"-----sex="+sex)
						}
		</script>
	</body>
</html>
